/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Entity(TableCnName = "科目报销明细表",TableName = "tb_project_budgetemp")]
    public partial class tb_project_budgetemp:BaseEntity
    {
        /// <summary>
        ///预算科目报销模板表主键
        /// </summary>
        [Key]
        [Display(Name = "预算科目报销模板表主键")]
        [MaxLength(64)]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public string Id { get; set; } =Guid.NewGuid().ToString();

       /// <summary>
       ///预算科目外键
       /// </summary>
       [Display(Name ="预算科目外键")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string BudgeId { get; set; }

       /// <summary>
       ///列名
       /// </summary>
       [Display(Name ="列名")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string columnName { get; set; }

       /// <summary>
       ///是否可编辑
       /// </summary>
       [Display(Name ="是否可编辑")]
       [Column(TypeName="bool")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public bool IsEdit { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "creator")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string creator { get; set; } = "Admin";

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "createDate")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? createDate { get; set; } = DateTime.Now;

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="modifier")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string? modifier { get; set; }

       /// <summary>
       ///修改日期
       /// </summary>
       [Display(Name ="modifyDate")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modifyDate { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        [Display(Name = "isDel")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? isDel { get; set; } = 0;

       
    }
}